package com.peycard.persistence.entities;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Set;


/**
 * The persistent class for the CATALOG_PROCESSING_CODE database table.
 * 
 */
@Entity
@Table(name="CATALOG_PROCESSING_CODE")
@NamedQuery(name="findCPCWithCPP", query="SELECT c FROM CatalogProcessingCode c JOIN FETCH c.catalogProcessingParams WHERE c.idProcessingCode = :id")
public class CatalogProcessingCode implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="CATALOG_PROCESSING_CODE_IDPROCESSINGCODE_GENERATOR", sequenceName="ID_CATALOG_PROCESSING_CODE_GENERATOR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CATALOG_PROCESSING_CODE_IDPROCESSINGCODE_GENERATOR")
	@Column(name="ID_PROCESSING_CODE")
	private long idProcessingCode;

	@Column(name="IS_ACTIVE")
	private BigDecimal isActive;

	@Column(name="IS_TOKEN")
	private BigDecimal isToken;

	@Column(name="MESSAGE_TYPE")
	private String messageType;

	@Column(name="PARAMS_IN")
	private String paramsIn;

	@Column(name="PARAMS_OUT")
	private String paramsOut;

	@Column(name="PROCESSIN_CODE")
	private String processinCode;

	private String routing;

	@Column(name="SERVICE_NAME")
	private String serviceName;

	//bi-directional many-to-one association to CatalogProcessingParam
	@OneToMany(mappedBy="catalogProcessingCode")
	private Set<CatalogProcessingParam> catalogProcessingParams;

    public CatalogProcessingCode() {
    }

	public long getIdProcessingCode() {
		return this.idProcessingCode;
	}

	public void setIdProcessingCode(long idProcessingCode) {
		this.idProcessingCode = idProcessingCode;
	}

	public BigDecimal getIsActive() {
		return this.isActive;
	}

	public void setIsActive(BigDecimal isActive) {
		this.isActive = isActive;
	}

	public BigDecimal getIsToken() {
		return this.isToken;
	}

	public void setIsToken(BigDecimal isToken) {
		this.isToken = isToken;
	}

	public String getMessageType() {
		return this.messageType;
	}

	public void setMessageType(String messageType) {
		this.messageType = messageType;
	}

	public String getParamsIn() {
		return this.paramsIn;
	}

	public void setParamsIn(String paramsIn) {
		this.paramsIn = paramsIn;
	}

	public String getParamsOut() {
		return this.paramsOut;
	}

	public void setParamsOut(String paramsOut) {
		this.paramsOut = paramsOut;
	}

	public String getProcessinCode() {
		return this.processinCode;
	}

	public void setProcessinCode(String processinCode) {
		this.processinCode = processinCode;
	}

	public String getRouting() {
		return this.routing;
	}

	public void setRouting(String routing) {
		this.routing = routing;
	}

	public String getServiceName() {
		return this.serviceName;
	}

	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	public Set<CatalogProcessingParam> getCatalogProcessingParams() {
		return this.catalogProcessingParams;
	}

	public void setCatalogProcessingParams(Set<CatalogProcessingParam> catalogProcessingParams) {
		this.catalogProcessingParams = catalogProcessingParams;
	}
	
}